<template>
    <div>
        <span class="skb" v-text="msg"></span>
        <router-link to="/login">登录</router-link>
        <router-link to="/register">注册</router-link>
        <router-view></router-view>
        <mt-button type="primary" size="large" @click="confirm">primary</mt-button>
    </div>
</template>
<script>
import { MessageBox } from 'mint-ui';
export default {
    data() {
        return {
            msg: 'hello vuejs'
        }
    },
    methods: {
        confirm() {
            MessageBox({
                title: '提示',
                message: '确定删除？',
                showCancelButton: true
            });
        }
    }
}
</script>
<style scoped>
.skb {
    color: skyblue;
}
</style>
